package com.zhuangwei.sell.enums;

import lombok.Getter;

/**
 * @author LeviCoder
 * @create 2019-03-01 0:35
 */
@Getter
public enum ResultEnum {

    PRODUCT_NOT_EXIST(10, "商品不存在"),
    PRODUCT_STOCK_ERR(20,"库存不正确"),
    ORDE_NOT_ESIXT(30,"订单不存在"),
    ORDERDETAIL_NOT_EXIST(40,"订单详情不存在"),
    ORDER_STATUS_ERROR(50,"订单状态不正确"),
    ORDER_UPDATE_FAIL(60,"订单更新失败"),
    ORDER_DETAIL_EMPTY(70,"订单中没有商品详情"),
    ORDER_PAY_STATUS_ERROR(80,"订单支付状态不正确"),
    PARAM_ERROR(1,"参数不正确"),
    CART_NOT_EMPTY(2,"购物车不能为空"),
    ORDER_OWNER_ERROR(3,"该订单不属于当前用户"),
    WECHAT_MP_ERROR(4,"微信公众账号方面错误"),
    WXPAY_NOTIFY_MONEY_VERIFY_ERROR(5,"支付的金额不一致"),
    ,
    ;

    private Integer code;

    private String message;

    ResultEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }
}
